package com.jdrx.sw.sewage.common.util;

import com.jdrx.platform.commons.rest.exception.BizException;

public class SewageDaoUtils {

    private SewageDaoUtils(){}

    public static void validateCount(int count, int expectVal, String errMag) throws BizException {
        if (count < expectVal){
            errMag = String.format( errMag + " , case count:%s < expect:%s", count, expectVal);
            throw new BizException(errMag);
        }
    }
}
